package ndk.jni;

import android.app.Activity;
import android.os.Bundle;

public class Test extends Activity {

	static {
		System.loadLibrary("android-ndk-jni");
	}

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
  
		Speaker speaker = new Speaker();

//		speaker.sendNativeString("zekezang,welcome臧!");
//		speaker.sendNativeInteger(123445);
//		speaker.sendNativeBoolean(true);
//		speaker.sendNativeBoolean(false);
//		System.out.println(speaker.getTalk());
		
		
//		User user = new User("zekezang", 24);
//		speaker.getAndChangeJavaField(user);
//		System.out.println("user.age:"+user.age);
//		System.out.println("user.name:"+user.name);
//		
//		speaker.callJavaMethod(user);
		
		System.out.println(speaker.getEmmcStorageSize());
	}
}